
import { call, put } from 'redux-saga/effects'
const delay = ms => new Promise(resolve => setTimeout(() => {
  resolve(666)
}, ms))
export function* getHomeData(action) {
  const res = yield call(delay, 1000)
  console.log(res)
  yield put({
    type: 'statusChange',
    payload: {
      status: Math.random()
    }
  })
}
